﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Windows.Forms;
using Vibz.Game.Bugs.Model;

namespace Vibz.Game.Bugs
{
    public class ListViewItemComparer : IComparer
    {
        public ListViewItemComparer()
        {
        }
        public int Compare(object x, object y)
        {
            int returnVal = -1;
            returnVal =
                ((Player)((ListViewItem)y).Tag).Score.CompareTo(
                    ((Player)((ListViewItem)x).Tag).Score);
            return returnVal;
        }
    }
}
